function myAjax(url, data, type) {
    let aa = null;
    $.ajax({
        url: url,
        data: data,
        type: type,
        async: false,
        dataType: 'json',
        success: function (data) {
            aa = data;
        }
    });
    console.log(aa);
    return aa;
}